BoxLang 🚀 A New JVM Dynamic Language Learn More...
Supported:
Adobe CF 2018+ Lucee 5+
Current Version: 1.7.0 (November 14 2024)
Dependencies:
/src
contains the source code. The package structure is nz.co.ventego-creative.co.nz.raygun4cfml
but the library's components themselves are independent of the package path. Therefore you can use the library in multiple ways:
Put the content of /src
into your webroot and instantiate RaygunClient
through something like the following:
raygun = createObject("component","nz.co.ventego-creative.raygun4cfml.RaygunClient").init(
apiKey = "YOURAPIKEYHERE"
);
Put the contents of /src
into any other place of your choice and create a mapping to /nz
in your server administrator or through code and then use the instantiation code as above.
Put the contents of the raygun4cfml
directory into a place of your choice where your CFML has some sort of a mapping pointing towards and and just instantiate RaygunClient
like this:
raygun = createObject("component","RaygunClient").init(
apiKey = "YOURAPIKEYHERE"
);
/samples
contains a set of files that show how the library can be used in your code through a global error handler as well as a contributed example for ColdBox 3.6
/tests
contains manual tests and more samples as well as a structure (but no tests at this stage) for Testbox unit and BDD tests.
Use Commandbox and Forgebox to get the library and then follow the ideas outlined in 'Library organisation' for further setup.
To get the latest from the master repository
box install raygun4cfml
To install a specific release or tag:
box install git://github.com/MindscapeHQ/raygun4cfml.git#{tagname}
Example tag names are 1.1.0
, 1.0.2.0
, 1.0.1.0
etc. Please check the list of tags on Github. Be aware that if you install any tag from before I introduced support for Commandbox and Forgebox there won't be a box.json
file and therefore Commandbox will give you a warning as well as there won't be any dependency management for such an installation of the library.
Shortcut for the above:
box install MindscapeHQ/raygun4cfml#{tagname}
To get the latest from my development repository (be warned, this might contain all sorts of untested code):
box install TheRealAgentK/raygun4cfml
Fork and clone the repo to your local system. Move the src/test directories into places of your choice and suitable for your system and follow the ideas outlined in 'Library organisation'.
Download a zip file containing the current content of the repo or a release/tag of your choice. Unzip the resulting file. Move the src/test directories into places of your choice and suitable for your system and follow the ideas outlined in 'Library organisation'.
(1) Options 2 and 3 will not fulfill any necessary dependencies, you're on your own.
See changelog.md for further information.
(1) All releases onwards from 0.5.0.0 will break your code if you've used 0.4 and older before and have used customRequestData
.
(2) If you are using the ACF Administrator setting: "Prefix serialized JSON with..." with anything else but the default prefix of //
, the library will not work.
(3) Version 1.1.0 and newer will not work on Adobe ColdFusion 8 and most likely not on Railo 3 (the latter not tested).
(4) Version 1.7.0 and newer will most likely not work with Adobe ColdFUsion 2016 and Railo/Lucee 4.x.
(5) On newer Java versions (>11), there is no default access to Java Memory Management unless you add the following argument to your JVM configuration: --add-opens java.management/sun.management=ALL-UNNAMED
Note: Please be aware that raygun4cfml is not an official Raygun library and not maintained by Raygun stuff. See LICENSE for more details.
The main repository of this project is https://github.com/MindscapeHQ/raygun4cfml. Please fork from there, create a local develop or feature branch and merge changes back to your local master branch to submit a pull request. Even better, get in touch with me on Twitter (@AgentK) or here on Github before you undertake any work so that it can be coordinated with what I'm doing.
Most of the active development happens in my own fork: https://github.com/TheRealAgentK/raygun4cfml - feel free to peek around in there.
Install this module and follow the guidelines in README.me as well as in /samples and /tests/test_manual
1.7.0 (November 14 2024)
1.6.0 (November 23 2023)
1.5.0 (November 14 2022)
1.4.0 (May 24 2022)
1.3.1 (Jul 26 2021)
1.3.0 (Jul 21 2021)
availableVirtualMemory
and availableFreeMemory
fields and not physical memory anymore. Fixed accessibility issues of internal classes post-Java 8 and the library should now be working fine across all JDKs.1.2.1 (Jun 16 2021)
1.2.0 (Jun 8 2021)
1.1.0 (Jan 2 2016)
1.0.2.0 (Nov 14 2015):
1.0.1.0 (Nov 14 2015):
1.0.0.1 (Jul 1 2015):
1.0.0.0 (Jan 3 2015):
0.5.0.0 (Dec 31 2014): merged and edited PR/ISSUE 15/16 and fixed a CF 9 issue. Please be aware that samples have changed due to a new way of passing in custom data.
0.4.0.0alpha (Jan 10 2014): Various small fixes, merged and edited PR10
0.3.4.0alpha (May 1 2013): Various bugfixes and improvements, fix for queryString, machineName is now server's IP Address and more
0.3.0.0alpha (Apr 10 2013): Switched Stracktrace with TagContext data to make it more relevant for Dashboard display of CFML errors, implemented support for the session and param structures within request, updated sample files to reflect the changes
0.2.2.0alpha (Mar 29 2013): Various fixes, better support for cfcatch (Expression) vs error structs
0.2.1.1alpha (Mar 28 2013): Merged PR from possum888, added sample for using RG in a global errorhandler or via cferror
0.2.1.0alpha (Mar 22 2013): Added support for POST rawData, CFML Form-Scope and implemented a scope-based content filtering allowing to replace sensitive scope data before it is being sent to Raygun.io
0.1.0.0alpha (Feb 15 2013): Initial Release, tested on ACF 9.
$
box install raygun4cfml